package com.briup.pts.service.impl;

import com.briup.pts.entity.ManagerBatch;
import com.briup.pts.entity.ManagerBatchExample;
import com.briup.pts.mapper.ManagerBatchMapper;
import com.briup.pts.service.ManagerBatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ManagerBatchServiceImpl implements ManagerBatchService {
    @Autowired
    private ManagerBatchMapper managerBatchMapper;

    @Override
    public List<ManagerBatch> findAllUnQuarantinedBatch() {
        ManagerBatchExample managerBatchExample = new ManagerBatchExample();
        managerBatchExample.createCriteria().andBQuarantineEqualTo("未检疫");
        return managerBatchMapper.selectByExample(managerBatchExample);
    }
    @Override
    public List<ManagerBatch> findAll() {
        ManagerBatchExample managerBatchExample = new ManagerBatchExample();
        return managerBatchMapper.selectByExample(managerBatchExample);
    }
}
